/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package info.server;

/**
 *
 * @author mark
 */
public class InfoServer {
    //Variabelen
    private ServerScreen serverscreen;
    private SqlConnection sqlconnection;
    private SocketConnection socketconnection;

    public InfoServer()
    {
        //Openen nieuw ServerScreen en aanmaken connecties.
        serverscreen = new ServerScreen(this);
        serverscreen.setVisible(true);
        sqlconnection = new SqlConnection(this);
        
        socketconnection = new SocketConnection( this );
        socketconnection.handleConnection();
    }
    //Methode om het hoofdscherm op te halen.
    public ServerScreen getMainScreen()
    {
        return serverscreen;
    }
    //Methode om de SqlConnection op te halen.
    public SqlConnection getSqlConnection(){
        return sqlconnection;
    }
    //Methode om de SocketConnection op te halen.
    public SocketConnection getSocketConnection(){
        return socketconnection;
    }
    
    public static void main(String[] args) 
    {
        new InfoServer();
    }
}
